
from Implementation import MemberSystem
from Menu import Menu

def main():
    book_system = MemberSystem()
    while True:
        Menu()
        in_put = int(input("请输入："))
        if in_put == 1:
            book_system.Add()

        if in_put == 2:
            book_system.Delete()

        if in_put == 3:
            book_system.Modify()

        if in_put == 4:
            book_system.Find()

        if in_put == 5:
            book_system.Show()

        if in_put == 6:
            print("确定退出吗？(yse or no)")
            n = input("请输入：")
            if n == "yes":
                break
            elif n == 'no':
                print("")
                continue
            else:
                print("非法输入请重新选择功能")
                continue

if __name__ == "__main__":
    main()
